package com.spb.dubbo.cn.gxpconsumer;/**
 * @Author: GaoXiaoPeng
 * @Description:
 * @Date: Created in 下午3:29 2018/4/14
 */

import com.alibaba.dubbo.config.annotation.Reference;
import com.spb.dubbo.cn.gxpfacade.MyDubboService;
import org.springframework.stereotype.Service;

/**
 *@ClassName MyConsumerService
 *@Description TODO
 *@Author youli
 *@Date 2018/4/14 下午3:29
 **/
@Service
public class MyConsumerService {
    @Reference
    MyDubboService mydubboservice;


    public String doSomethingByDubbo(String something){
        System.out.printf(something);
        return mydubboservice.doSomething(something);
    }
}
